package com.qixin.api.bean;

import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.activerecord.Model;
import com.baomidou.mybatisplus.annotations.TableName;
import java.io.Serializable;
import java.util.List;

/**
 * <p>
 * 角色表
 * </p>
 *
 * @author 李许多
 * @since 2018-11-12
 */
@TableName("total_role")
public class TotalRole extends Model<TotalRole> {

    private static final long serialVersionUID = 1L;

	private Long id;
    /**
     * 角色名
     */
	@TableField("role_name")
	private String roleName;
    /**
     * 角色编码
     */
	@TableField("role_value")
	private String roleValue;
    /**
     * 创建时间
     */
	@TableField("create_time")
	private Long createTime;

	public List<TotalMenuResourse> getTotalMenuResourses() {
		return totalMenuResourses;
	}

	public void setTotalMenuResourses(List<TotalMenuResourse> totalMenuResourses) {
		this.totalMenuResourses = totalMenuResourses;
	}

	@TableField(exist =  false)
	private List<TotalMenuResourse> totalMenuResourses;


	public Long getId() {
		return id;
	}

	public void setId(Long id) {
		this.id = id;
	}

	public String getRoleName() {
		return roleName;
	}

	public void setRoleName(String roleName) {
		this.roleName = roleName;
	}

	public String getRoleValue() {
		return roleValue;
	}

	public void setRoleValue(String roleValue) {
		this.roleValue = roleValue;
	}

	public Long getCreateTime() {
		return createTime;
	}

	public void setCreateTime(Long createTime) {
		this.createTime = createTime;
	}

	@Override
	protected Serializable pkVal() {
		return this.id;
	}

	@Override
	public String toString() {
		return "TotalRole{" +
				"id=" + id +
				", roleName='" + roleName + '\'' +
				", roleValue='" + roleValue + '\'' +
				", createTime=" + createTime +
				", totalMenuResourses=" + totalMenuResourses +
				'}';
	}
}
